package com.ww.disruptor.factory;

import com.lmax.disruptor.EventFactory;
import com.ww.disruptor.event.OrderEvent;

/**
 * 建立一个工厂Event类，用于创建Event实例对象
 */
public class OrderEventFactory implements EventFactory<OrderEvent> {
    @Override
    public OrderEvent newInstance() {
        return new OrderEvent();
    }
}
